package code.bigmama.controller;

import android.os.SystemClock;

public class FileNameManager 
{
	private static FileNameManager _instance  = null;
	
	String mFileName = null;

	private String mProfilePhotoPath = null;
	
	public static FileNameManager getInstance()
	{
		if (_instance == null)
		{
			_instance = new FileNameManager();
		}

		return _instance; 
	}
	
	public void resetFileName()
	{
		long currentTime = SystemClock.currentThreadTimeMillis();
		mFileName = String.valueOf( currentTime );
	}
	
	public String getVoiceFileName()
	{
		String extension = "audio.3gp";
		return mFileName + extension;
	}
	
	public String getVideoFileName()
	{
		String extension = "video.3gp";
		return mFileName + extension;
	}
	
	public String getPhotoFileName()
	{
		String extension = "photo.jpg";
		return mFileName + extension;
	}
	
	public void setProfilePhotoPath(String path)
	{
		mProfilePhotoPath = path;
	}
	
	public String getProfilePhotoPath()
	{
		return mProfilePhotoPath ;
	}
}
